package com.yunxi.controller.vehicle;

import com.alibaba.dubbo.config.annotation.Reference;
import com.yunxi.core.web.ApiResult;
import com.yunxi.core.web.ResponseUtil;
import com.yunxi.vehicle.pojo.VehicleModelVO;
import com.yunxi.vehicle.pojo.VehiclePackageRespVO;
import com.yunxi.vehicle.service.VehiclePackageDubboService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

@RestController
@RequestMapping("/admin/vehiclePackage")
@Api(tags = "pms:vehiclePackage", description = "选装包接口")
public class VehiclePackageController {
    /*@Reference(version = "${demo.service.version}",
            application = "${dubbo.application.id}",
            url = "${dubbo.application.url}",
            check = false,
            timeout = 10000)*/
    @Autowired
    VehiclePackageDubboService vehiclePackageDubboServiceImpl;

    @GetMapping("/list")
    @ApiOperation(value = "选装包下拉列表查询")
    public ApiResult<VehiclePackageRespVO> queryVehiclePackage( String productCode) {
        return ResponseUtil.ok(vehiclePackageDubboServiceImpl.queryVehiclePackage(productCode));
    }


}
